<?php include('header.php');?>
<!-- body begin -->
<div class="blank5"></div>
<div class="body_content">
	<div class="banner"><img src="<?=config_item('i_base_url');?>images/banner.jpg"  alt="广告" width="966" height="92"></div>
	<div class="blank5"></div>
	<div class="path">当前位置：
        <a href="<?=config_item('i_base_url');?>">首页</a> »
        <a href="<?=config_item('i_base_url');?>category/<?=$categoryId?>/0/1.html"><?=$class_name;?></a>
        <?php if($type):?> » <?=$children[$type]['name']?><?php endif;?>
    </div>
	<div class="blank5"></div>
	<div class="list_c">
		<div class="left_c">
			<div class="left_menu">
				<div class="left_menu_title"><?=$class_name?>索引</div>


				<div class="left_menu_class">类型</div>
				<div class="left_menu_search">
					<ul>
						<li class="s_l_2"><a href="<?=config_item('i_base_url');?>category/<?=$categoryId?>/0/1.html" <?php if(!$type):?>id="search_hover"<?php endif;?>>全部</a></li>
                        <?php foreach($children as $v):?>
                        <?php if(!$v['name'])continue;?>
						<li class="s_l_2"><a href="<?=config_item('i_base_url');?>category/<?=$v['pid']?>/<?=$v['id']?>/1.html" <?php if($type == $v['id']):?>id="search_hover"<?php endif;?>><?=$v['name']?></a></li>
                        <?php endforeach;?>
					</ul>
				</div>
				<div class="blank10"></div>

				<!--div class="left_menu_class">地区</div>
				<div class="left_menu_search">
					<ul>
						<li class="s_l_4"><a href="#" id="search_hover">全部地区</a></li>
						<li class="s_l_4"><a href="#">中国大陆</a></li>
						<li class="s_l_4"><a href="#">中国港台</a></li>
						<li class="s_l_4"><a href="#">全部地区</a></li>
						<li class="s_l_4"><a href="#">中国大陆</a></li>
						<li class="s_l_4"><a href="#">中国港台</a></li>
					</ul>
				</div>
				<div class="blank10"></div>
				<div class="left_menu_class">版本</div>
				<div class="left_menu_search">
					<ul>
						<li class="s_l_4"><a href="#" id="search_hover">全部版本</a></li>
						<li class="s_l_4"><a href="#">高清版</a></li>
						<li class="s_l_4"><a href="#">DVD版</a></li>
						<li class="s_l_4"><a href="#">全部版本</a></li>
						<li class="s_l_4"><a href="#">高清版</a></li>
						<li class="s_l_4"><a href="#">DVD版</a></li>
					</ul>
				</div-->
			</div>
			<div class="smallclean"></div>
			<div><img src="<?=config_item('i_base_url');?>images/pic/list_ad.jpg" border="0"  alt="广告" width="258" height="307"></div>
		</div>
		<div class="right_c">
			<div class="right_c_title">显示搜索结果：</div>
			<ul>
                <?php foreach ($movies as $k=>$v):?>
				<li>
					<div class="l_l_d"><a href="<?=movie_url($v['id'])?>" target="_blank"><img src="<?=image_url($v['id']);?>" width="132" height="185"  alt="<?=$v['china_name'];?>" onerror="dy.nopic(this)"></a></div>
					<div class="l_r_d">
						<dl>
							<dt><a href="<?=movie_url($v['id'])?>" target="_blank" title="<?=$v['china_name'];?>"><?=$v['china_name'];?></a></dt>
							<dd>类型：<?php
                                $type = trim($v['type']);
                                $t = (empty ($type) || ( strpos($type, '|') === false ) ) ? array(0 => $type) : explode('|', $type);
                                echo empty ($t[0]) ? '动作' : $t[0]; ?>
                            </dd>
							<dd>导演：<?php
                                $director = trim($v['director']);
                                $d = (empty ($director) || ( strpos($director, '|') === false ) ) ? array(0 => $director) : explode('|', $director);
                                echo empty ($d[0]) ? '未知' : '<a href="'.config_item('i_base_url').'search?keyword='.urlencode(trim($d[0])).' target="_blank" title="'.$d[0].'">'.$d[0].'</a>'; ?>
                            </dd>
							<dd>演员：
                                <?php $starring = explode('|', $v['starring']);foreach($starring as $p):?>
                                <a href="<?=config_item('i_base_url');?>search?keyword=<?=urlencode(trim($p))?>" target="_blank" title="<?=$p?>"><?=trim($p)?></a>
                                <?php endforeach;?>
                            </dd>
							<dd>地区：<?php
                                $area = trim($v['area']);
                                $a = (empty ($area) || ( strpos($area, '|') === false ) ) ? array(0 => $area) : explode('|', $area);
                                echo empty ($a[0]) ? '未知' : $a[0]; ?>
                            </dd>
							<dd>上映时间：<?=date('Y-m-d', strtotime($v['public_time']));?></dd>
							<dd>更新时间：<?=date('Y-m-d', strtotime($v['create_time']));?></dd>
							<dd><a href="<?=movie_url($v['id'])?>" target="_blank" style="background:url(<?=config_item('i_base_url');?>images/list_btn.jpg) no-repeat; width:73px; height:20px; display:block;"></a></dd>
						</dl>
					</div>
				</li>
                <?php endforeach;?>
			</ul>
			<div class="blank20"></div>
			<div class="page">
                <!--
				<a href="#">上一页</a>
				<a href="#" id="cur">1</a>
				<a href="#">2</a>
				<a href="#">3</a>
				<a href="#">4</a>
				<a href="#">5</a>
				<a href="#">6</a>
				<a href="#">下一页</a>
				-->
                <?=$page_html;?>
                <!--
				<span>共1/20页</span>
				<div>转到第
					<select name="topage">
						<option value="1">1</option>
						<option value="1">2</option>
					</select> 页
				</div>
				-->
			</div>
			<div class="blank5"></div>
		</div>
	</div>
	<div class="blank5"></div>
	<div class="friend_shop">
		<div class="friend_shop_c">
			<a href=""><img src="<?=config_item('i_base_url');?>images/pic/shop_ad.jpg" border="0" title="衬衫" alt="广告" width="63" height="62"><br />衬衫418款</a>
			<a href=""><img src="<?=config_item('i_base_url');?>images/pic/shop_ad.jpg" border="0" title="衬衫" alt="广告" width="63" height="62"><br />衬衫418款</a>
			<a href=""><img src="<?=config_item('i_base_url');?>images/pic/shop_ad.jpg" border="0" title="衬衫" alt="广告" width="63" height="62"><br />衬衫418款</a>
			<a href=""><img src="<?=config_item('i_base_url');?>images/pic/shop_ad.jpg" border="0" title="衬衫" alt="广告" width="63" height="62"><br />衬衫418款</a>
			<a href=""><img src="<?=config_item('i_base_url');?>images/pic/shop_ad.jpg" border="0" title="衬衫" alt="广告" width="63" height="62"><br />衬衫418款</a>
			<a href=""><img src="<?=config_item('i_base_url');?>images/pic/shop_ad.jpg" border="0" title="衬衫" alt="广告" width="63" height="62"><br />衬衫418款</a>
			<a href=""><img src="<?=config_item('i_base_url');?>images/pic/shop_ad.jpg" border="0" title="衬衫" alt="广告" width="63" height="62"><br />衬衫418款</a>
			<a href=""><img src="<?=config_item('i_base_url');?>images/pic/shop_ad.jpg" border="0" title="衬衫" alt="广告" width="63" height="62"><br />衬衫418款</a>
		</div>
	</div>
</div>

<div class="blank5"></div>
<div class="buquan"></div>
<!-- body end -->
<?php include('footer.php');?>